<?php
require_once '../auth.php';
require_once '../forward.php';
$user = $_SESSION['user'];

render_begin(' :: search');
render_profile($user);
render_page_begin();
render_header();

if (isset($_GET['s']) && !empty($_GET['s'])) {
    render_search($user, $_GET['s'], search($user, $_GET['s']));
} else {
    render_search($user, '');
}

render_footer();
render_page_end();
render_end();
?>
